import { App } from 'vue'
import BFFormParse from './bf-form-parse'
import BFIcon from './bf-icon'
import BFTable from './bf-table'
import BFToolRow from './bf-tool-row'
import BFCurd from './bf-curd'
import BFModal from './bf-modal'

export const butterflyUI = {
  install(app: App) {
    app.component(BFFormParse.name, BFFormParse)
    app.component(BFIcon.name, BFIcon)
    app.component(BFToolRow.name, BFToolRow)
    app.component(BFTable.name, BFTable)
    app.component(BFCurd.name, BFCurd)
    app.component(BFModal.name, BFModal)
  }
}

export { BFIcon, BFTable, BFToolRow, BFCurd, BFModal, BFFormParse }
